<template>
  <el-dialog :title="title" :visible.sync="dialogVisible" width="800px" append-to-body :close-on-click-modal="false">
  
    <el-form ref="form" :model="form" :rules="rules" label-width="120px">
  
      <el-form-item label="更新内容" prop="dictLabel">
        <el-input v-model="form.dictLabel" placeholder="请输入游戏名称" style="width:100%;"/>
      </el-form-item>
      
      <el-form-item label="更新地址" prop="dictSort">
        <el-input v-model="form.dictSort" :min="1" :max="10" placeholder="请输入更新地址"></el-input>
      </el-form-item>
      
      <el-form-item label="更新标题" prop="remark">
        <el-input v-model="form.remark" :rows="4" placeholder="请输入更新标题"/>
      </el-form-item>
      
      <el-form-item label="是否静默更新" prop="remark">
        <el-radio>是</el-radio>
        <el-radio>否</el-radio>
      </el-form-item>
      
      <el-form-item label="是否强制更新" prop="remark">
        <el-radio>是</el-radio>
        <el-radio>否</el-radio>
      </el-form-item>
      
      <el-form-item label="更新类型" prop="remark">
        <el-radio>WGT更新</el-radio>
        <el-radio>整包更新</el-radio>
      </el-form-item>
      
      <el-form-item label="版本名称" prop="remark">
        <el-input v-model="form.remark" :rows="4" placeholder="请输入版本名称"/>
      </el-form-item>
      
      <el-form-item label="升级按钮文字" prop="remark">
        <el-input v-model="form.remark" :rows="4" placeholder="请输入注意事项"/>
      </el-form-item>
      
      <el-form-item label="下载提示" prop="remark">
        <el-input v-model="form.remark" :rows="4" placeholder="请输入注意事项"/>
      </el-form-item>
      
      <el-form-item label="成功提示" prop="remark">
        <el-input v-model="form.remark" :rows="4" placeholder="请输入注意事项"/>
      </el-form-item>
      
      <el-form-item label="失败提示" prop="remark">
        <el-input v-model="form.remark" :rows="4" placeholder="请输入注意事项"/>
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="close">取 消</el-button>
      <el-button type="primary" >确 定</el-button>
    </div>
  </el-dialog>
</template>
<script>
    export default {
        props: {
            title: {
                type: String
            }
        },
        data() {
            return {
                dialogVisible: false,
                form: {},
                rules: {}
            }
        },
        methods: {
            open() {
                console.log(11231)
                this.dialogVisible = true;
            },
            close() {
                this.dialogVisible = false;
            }
        }
    }
</script>
